package priv.menguer.proxy.service.impl;

import priv.menguer.proxy.service.Image;

/**
 * @Title ProxyImage.java
 * @description TODO
 * @time 2018年10月26日 上午10:38:18
 * @author menguer@126.com
 * @version 1.0
 */
public class ProxyImage implements Image {

	private RealImage realImage;
	private String fileName;

	public ProxyImage(String fileName) {
		this.fileName = fileName;
	}

	@Override
	public void display() {
		if (realImage == null) {
			realImage = new RealImage(fileName);
		}
		realImage.display();
	}
}
